// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import store from './store' // vuex
import axios from 'axios' //axios
import global_ from 'components/global'//引用全局img上传变量
import "static/global/plugins/font-awesome/css/font-awesome.min.css"
import "static/global/plugins/simple-line-icons/simple-line-icons.min.css"
import "static/global/plugins/bootstrap/css/bootstrap2.min.css"
import "static/admin/layout/css/layout.min.css"
import "static/admin/layout/css/themes/darkblue.min.css"
import "static/global/css/style.css"
import 'element-ui/lib/theme-chalk/index.css'

import 'jquery'
import "static/global/plugins/bootstrap2/js/bootstrap.js"
import "static/js/jquery.slimscroll.min.js"
import "static/js/axios.js"
Array.prototype.remove = function(val) {
	var index = this.indexOf(val);
	if(index > -1) {
		this.splice(index, 1);
	}
};
String.prototype.trim=function() {
    return this.replace(/(^\s*)|(\s*$)/g,'');
}
Vue.config.productionTip = false;
//Vue.use(iView);
Vue.use(ElementUI)
/* eslint-disable no-new */
Vue.prototype.GLOBAL = global_//挂载到Vue实例上面
new Vue({
	el: '#app',
	router,
	store,
	template: '<App/>',
	components: {
		App
	}
})